package com.stars.empoly.activity

import android.graphics.Color
import android.os.Bundle
import android.text.TextUtils
import com.githang.statusbar.StatusBarCompat
import com.qmuiteam.qmui.kotlin.onClick
import com.stars.empoly.base.MBActivity
import com.stars.empoly.databinding.ActivityForgetPasswordBinding
import com.stars.empoly.vmodel.ForgetPasswordVModel

/**
 *
 *on 2020/9/25
 */
class ForgetPasswordActivity : MBActivity<ForgetPasswordVModel, ActivityForgetPasswordBinding>(){



    override fun init(savedInstanceState: Bundle?) {
        super.init(savedInstanceState)
        StatusBarCompat.setStatusBarColor(this, Color.parseColor("#ffffff"))

        var adminType=intent?.extras?.getString("adminType")
        if(!TextUtils.isEmpty(adminType)&&adminType.equals("driver")){
            vm.toChose(2)
        }

    }

    override fun listeners() {
        super.listeners()
        binding.imgBack.onClick {
            finish()
        }
    }

    override fun binding(): ActivityForgetPasswordBinding {
       return ActivityForgetPasswordBinding.inflate(layoutInflater)
    }

    override fun vmClass(): Class<ForgetPasswordVModel> {
        return ForgetPasswordVModel::class.java
    }


    override fun title(): String? {
        return null
    }

    override fun transluent(): Boolean {
        return true
    }
}
